package com.namecard.namecardapi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.namecard.namecardapi.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wzx
 * @since 2023-07-03
 */
@Mapper
public interface UserInfoMapper extends BaseMapper<UserInfo> {

    /**
     * 获取所有的user_id
     * @return 所有的user_id
     */
    List<String> selectUserIdList();

    List<String> getRedisPushData(@Param("randomStart") int randomStart, @Param("size") int size);



    /**
     * 通过userId获取taglist
     *
     */
    String byUserIdSelectTagList(String userId);

    /**
     * 根据userId查一条信息
     */
    UserInfo selectInfoByUserId(String userId);
}
